/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package deliciousBlogger;

import java.util.Enumeration;
import java.util.Properties;

/**
 *
 * @author leadiv
 */
public class DeliciousBlogger {
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                // -Dderby.system.home=../derby -Dderby.drda.startNetworkServer=true -Dderby.drda.portNumber=1226
                Properties dbprops = new Properties();


                dbprops = PropertyLoader.loadProperties("resources.derby");

                Enumeration e = dbprops.propertyNames();
                String value = "";
                String key = "";
                while(e.hasMoreElements())
                {
                    key = (String) e.nextElement();
                    value = dbprops.getProperty((String) key);
                    System.setProperty(key, value);
                }

                Login l = new Login();
                l.setVisible(true);
            }
        });
    }
}
